<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('activite/'.($form->getObject()->isNew() ? 'create' : 'update?act_id='.$form->getObject()->getActId())) ?>" method="post">
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>

<?php echo $form->renderHiddenFields(false) ?>
<?php echo $form->renderGlobalErrors() ?>

<table class="detail">
	<tbody>
		<?php echo $form['act_pere_id']->renderRow() ?>
		<?php echo $form['act_libelle']->renderRow(array('size' => 100)) ?>
	</tbody>
</table>
<input type="submit" value="Enregistrer" />
  
</form>

<?php echo link_to('Retour suivi', 'activite/index') ?>

				<?php if (!$form->getObject()->isNew()): ?>
					&nbsp;<?php echo link_to('Delete', 'activite/delete?act_id='.$form->getObject()->getActId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
				<?php endif; ?>
